package com.loop.test;

public class Xiao {
    public static void main(String[] args) {
        printHeart();
    }
    public static void printHeart(){
        for (int i = 0; i <=3 ; i++) {
            /*if (i<3) {
                System.out.print(" ");
            }*/
            for (int j = 0; j <3-i ; j++) {
                System.out.print("   ");
            }
            for (int j = 0; j <2*i ; j++) {
                System.out.print(" * ");
            }
            for (int j = 0; j <=4-2*i ; j++) {
                System.out.print("   ");
            }
            for (int j = 0; j <2*i ; j++) {
                if (j<5) {
                    System.out.print(" * ");
                }
            }
            System.out.println();
        }
        for (int i = 0; i < 6; i++) {
            for (int j = 0; j <i ; j++) {
                System.out.print("   ");
            }
            for (int j = 0; j <12-2*i-1 ; j++) {
                System.out.print(" * ");
            }
            System.out.println();
        }
    }
}
